-- cast_summon_skill
-- created by panyl
-- 施展召唤兽主动技能

return {
    doAction = function(action, extra)
        -- 低位是召唤兽位置，高位是目标位置
        local pos = action.pos % 256;
        local target_pos = math.floor(action.pos / 256);
        local skill_id = action.data;

        return SummonM.castSkill(pos, target_pos, skill_id);
    end,
};
